package cn.bob.user.service.impl;

import cn.bob.user.domain.User;
import cn.bob.user.mapper.UserMapper;
import cn.bob.user.service.IUserService;
import cn.bob.basic.service.impl.BaseServiceImpl;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bob
 * @since 2022-10-19
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements IUserService {
    @Autowired
   private UserMapper mapper;

    //查询phone是否已经注册
    @Override
    public User findByPhone(String phone) {
        return mapper.findByPhone(phone);
    }

    @Override
    public User findByEmail(String email) {
        return mapper.findByEmail(email);
    }

    @Override
    public User findLoginid(Long id) {
        return mapper.findLoginid(id);
    }
}
